package ModelLayer;


public class Loan
{
    private long dvdId;
    private long personId;
    private long loanId;
    private String borrowDate;
    private String period;
    private String state;

    /**
     * Constructor for objects of class Loan
     */
    public Loan(long loanId,long dvdId,long personId,String borrowDate,String period,String state)
    {
        this.dvdId=dvdId;
        this.personId=personId;
        this.borrowDate=borrowDate;
        this.period=period;
        this.state=state;
        this.loanId=loanId;
     
    }
    
    
    /**
     * Set and get methods.
     */
    
    public void setId(long loanId){
        
        this.loanId=loanId;
    }
    
    public long getId(){
        
        return this.loanId;
    }
    
    
    
    public void setBorrowDate(String borrowDate){
        
        this.borrowDate=borrowDate;
    }
    
    public String getBorrowDate(){
        
        return this.borrowDate;
    }
    
    public void setPeriod(String period){
        
        this.period=period;
    }
    
    public String getPeriod(){
        
        return this.period;
    }
    
    
    public void setState(String state){
        
        this.state=state;
    }
    
    public String getState(){
        
        return this.state;
    }
    
    public long getDvdId()
    {
        return dvdId;
    }
    
    public long getPersonId()
    {
        return personId;
    }
    
    
    /**
     * Print information.
     */
    
    public void print(){
        
       System.out.println("id:"+this.loanId+" ");
       System.out.println("Person id:"+this.personId+" ");
       System.out.println("DVD id:"+this.dvdId+" ");
       System.out.println("Borrow date:"+this.borrowDate+" ");
       System.out.println("Period:"+this.period+" ");
       System.out.println("State:"+this.state+" ");
    }
       

   
   
}
